<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全屏图片展示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body, html {
            height: 100%;
            width: 100%;
            overflow: hidden;
            font-family: system-ui, -apple-system, sans-serif;
        }
        
        .container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        
        .fullscreen-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
        }
        
        .controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 12px;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        .container:hover .controls {
            opacity: 1;
            pointer-events: auto;
        }
        
        .btn {
            padding: 8px 16px;
            background: rgb(160, 160, 160);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            /* backdrop-filter: blur(10px);
            transition: all 0.2s ease; */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .btn:hover {
            background: rgba(40, 40, 40, 0.9);
            transform: translateY(-2px);
        }
        
        .btn:active {
            transform: translateY(0);
        }
    </style>
</head>
<body>
   <div class="container">
        <img class="fullscreen-image">
        <div class="controls">
            <button class="btn" id="editBtn">编辑</button>
            <button class="btn" id="refreshBtn">刷新</button>
        </div>
    </div>
    <script src="index.js"></script>
</body>
</html>